package tech.aistar.prj.entity;

/**
 * 本类功能:整个项目中返回出去的统一的数据
 *
 * @author cxylk
 * @date 2020/9/18 18:28
 */
public class Result {
    private String code;//枚举类型，http状态码

    private String msg;//备注

    private Object data;//真实的返回出去的数据

    public Result() {
    }

    public Result(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Result(String code, String msg, Object data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
